/**
 * @author: 小佘佘🦀
 * @description: 获取cpxh数据
 * 
 * */
import { isCodeMessage } from "../../config"

export const getCpxh = async () => {
    // 发送GET请求，获取标志
    const response = await fetch(`/api-backend/api/team/cpxh`, {
        method: "get",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
        },
        mode: "no-cors",
        redirect: "manual" 
    })

    // 返回标志
    return isCodeMessage(response)
}